<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script type="text/javascript"
	src="${ctx}/scripts/tags/unitedselect/UnitedSelect.js"></script>

<title>派工列表</title>

<script type="text/javascript">

	/**
	 * 查询任务列表
	 */
	function search(){
	   document.searchList.submit();
	}

	function saveSelect(){
	 var objj = findFrame("list");

	 if(objj.getSelectId()==''){
	   Alert('至少选择一条记录!');
	   return false;
	  }

	 var urll = "${ctx}/occupation_perfectItemDispatchAction.do?method=savePerfectItemReqOfDispList";
	 var selectIdStr="selectIdStr="+objj.getSelectId();
	 new Ajax.Request(urll,{method: 'post',parameters:selectIdStr,onSuccess : function(result){

	 var resultText = result.responseText.strip();
		ajaxSubmitException(resultText);

		 var obj = findFrame("perfectItemOfDispaList");

         obj.parent.reloadPerfectItemOfDispaList();

        windowClose();


		}}
	 );
	}


</script>
</head>

<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg">
    	<table border="0" cellpadding="0" cellspacing="0">
	      <tr>
	        <td><span class="window_head_intext"><img src="${ctx}/images/ico_Advance.gif" align="absmiddle" />&nbsp;派工列表</span></td>
	      </tr>
    	</table>
    </td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
<tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td  class="content">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
	        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BCBFD2" >
	          <tr>
	            <td>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
      <td class="bg_search">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td class="bg_search">
      <table border="0" cellpadding="0" cellspacing="1" id="search01">
       <form action="${ctx}/occupation_perfectItemDispatchAction.do?method=perfectItemReqOfDispList"
	   		 id="searchList" name="searchList" method="post" target="list">
        <tr>
          <td class="td_search">楼 栋：</td>
          <td class="td_search">
          	<pms:unitedSelect
				dataList="${buildingList}"
				id="buildingId"
				name="buildingId"
				optionLabel="name"
				optionValue="keyword"
				selectText="全部"
				tabIndex="3">
				</pms:unitedSelect>
          </td>
          <td class="td_search">申请项目类型：</td>
          <td class="td_search"><pms:unitedSelect id="perfectItemTypeConfigId"
                            selectText="全部"
							name="perfectItemTypeConfigId"
							dataList="${ItemType}"
							optionLabel="perfectItemTypeName"
							optionValue="keyword" >
			</pms:unitedSelect></td>
          <td class="td_search">&nbsp;</td>
          <td class="td_search"><table border="0" cellpadding="0" cellspacing="0" >
              <tr>
                <td class="buttonOffLeft" id="btn1_11">

                </td>
                <td class="buttonOffMiddle" id="btn1_12"
                	onblur="btn_change(1)"
                	onMouseOver="btn_change_over(1)"
                	onMouseOut="btn_change_out(1)"
                	onclick="search();">
                	<img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle" /> 查
                  询</td>
                <td class="buttonOffRight" id="btn1_13"></td>
              </tr>
          </table></td>
        </tr>
        </form>
      </table></td>
        </tr>
      </table>
	  	  </td>
    </tr>
    <tr>
      <td class="bg_toolBar">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="35%">&nbsp;</td>
          <td width="65%" align="right"></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td valign="top">
		<iframe id="list"  name="list" height="220px" frameborder="0" border="0" src="${ctx}/occupation_perfectItemDispatchAction.do?method=perfectItemReqOfDispList" width="100%" ></iframe>
      </td>
    </tr>
  </table>

</td>
     </tr>
        </table></td>
    </tr>
  </table>

</td>
  </tr>
  <tr>
    <td colspan="2" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr><td><table border="0"  cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
    </table>      </td>
	       <td class="btn_between_space"></td>
            <td><table border="0" cellpadding="0" cellspacing="0" >
            <tr>
              <td class="buttonOffLeft" id="btn1_51"></td>
              <td class="buttonOffMiddle" id="btn1_52" onblur="btn_change(5)" onMouseOver="btn_change_over(5)" onMouseOut="btn_change_out(5)" onClick="saveSelect();"><img src="${ctx}/images/ico_ok.gif" border="0" align="absmiddle" />${key.save}</td>
              <td class="buttonOffRight" id="btn1_53"></td>
            </tr>
        </table></td>
          <td class="btn_between_space"></td>
          <td>
          	<table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle"
                	id="btn1_32"
                	onClick="windowClose();"
                	onMouseOver="btn_change_over(3)"
                	onMouseOut="btn_change_out(3)"
                	onBlur="btn_change(3)">
                	<img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 关 闭</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
        </tr>
          </table>
      <p>&nbsp;</p></td>
  </tr>
</table>
</div>
</body>
</html>
